package com.example.demo.util.craw;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashSet;
import java.util.Set;

/**
 * Description: 爬虫的元数据<br/>
 *
 * @author LLL<br />;
 * @taskId <br/>
 * @Date 2019/5/23 11:23
 * @Version 1.0
 */
@ToString
public class CrawlMeta {
    /**
     * 爬去的网址
     */
    @Getter
    @Setter
    private String url;

    @Setter
    private Set<String> selectorRules;

    public Set<String> getSelectorRules() {
        return selectorRules != null ? selectorRules : new HashSet<>();
    }

}
